package com.euc.springbootframework;

import com.euc.springbootframework.dao.base.BaseDaoFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableAsync;


@SpringBootApplication
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@EnableMongoRepositories(basePackages = {"com.euc.springbootframework.dao"},repositoryFactoryBeanClass = BaseDaoFactoryBean.class)
@EnableMongoAuditing(auditorAwareRef = "SpringAuditorAware")
@EnableAsync
public class SpringbootFrameworkApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringbootFrameworkApplication.class, args);
	}
}
